var app = require('express').createServer();

app.configure(function(){
	app.set('views',__dirname + '/views');
	app.set('view engine','jade');
	app.set('view options',{layout:false});
});

app.get('/', function(req, res){
  res.send('hello world from csser.com!');
});

app.get('/site',function(req,res){
	res.send('this is site');
});

var user = {
	name:'TJ',
	email:'ajaxj@qq.com',
	city:'shanghai',
	province:'BC'
};

app.get('/test',function(req,res){
	   res.render('index', {
       title: 'Wayne Express Hello World',
       youAreUsingJade: true,
       domain: '192.168.1.4'
   });
});

app.get('/test1',function(req,res){
	res.render('form',{user:user});
});

app.listen(3000);